package start.demo01.exception;

public class Main {
    public static void main(String[] args) throws TCheckException {
        throw new TCheckException();//抛出受检异常
    }
    public void main(int a){
        throw new TRuntimeException();//抛出运行时异常
    }
    public void test(){
        throw new Error();//抛出错误
    }
    public void t2() throws Throwable {
        throw new Throwable();//抛出最高异常，默认受检
    }
}
